<template>
    <div class="test2"> 
        <div @click="test">这是Test1组件这是Test1组件这是Test1组件这是Test1组件</div>

    </div> 
</template>
<script>
    // import getPageTree from "../utils/getPageTree";
    import {mapMutations} from "vuex";
    export default {
        data () {
            return {
                pageTree: []
            }
        },
        methods: {
            test () {
                this.setGwTest();
            },
            ...mapMutations("gw", [
                "setGwTest"
            ]),
            test() {
                console.log("点击了事件");
            }
        },
        created () {
            // this.pageTree = getPageTree(this, "index");
            // console.log(this.pageTree);
        },
        mounted () {
            
        }
    }
</script>
<style scoped>
    .test2 {
        background: red;
        width: 300px;
        height: 100px;
    }
</style>